import Vue from 'vue'
import App from './App.vue'
import router from './router'
import Element from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

import VueParticles from 'vue-particles'

import 'normalize.css/normalize.css'
import './assets/css/common.css'

import http from './utils/axios'

import {Message} from 'element-ui'

import filters from './filters/filters'

Vue.use(VueParticles)
Vue.use(Element);

Vue.config.productionTip = false

Vue.prototype.http = http
Vue.prototype.msg = function (config){
  return Message({
    ...config,
    duration: 1000
  })
}

Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
